-- GENERATED SPELL FOR [Stockade Archer] --


function spell0_6237(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6237', 593, 1)
end

function Sorts_6237(pUnit, Event)
local choix_sorts_6237 = math.random(0, 0)
if choix_sorts_6237 == 0 then
pUnit:RegisterEvent('spell0_6237', 1, 1)
end
end

function mob6237_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6237', math.random(1500, 3000), 1)
end

function mob6237_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6237_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6237_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6237, 1, 'mob6237_Action')
RegisterUnitEvent(6237, 2, 'mob6237_Leave')
RegisterUnitEvent(6237, 3, 'mob6237_Kill')
RegisterUnitEvent(6237, 4, 'mob6237_Die')
